.class public Ldgb/b0;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static final c:Ldgb/b0;


# instance fields
.field private a:Landroid/os/HandlerThread;

.field private b:Landroid/os/Handler;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ldgb/b0;

    invoke-direct {v0}, Ldgb/b0;-><init>()V

    sput-object v0, Ldgb/b0;->c:Ldgb/b0;

    return-void
.end method

.method private constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Landroid/os/HandlerThread;

    const-string v1, "Handler01"

    const/16 v2, 0xa

    invoke-direct {v0, v1, v2}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;I)V

    iput-object v0, p0, Ldgb/b0;->a:Landroid/os/HandlerThread;

    .line 3
    invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V

    .line 4
    new-instance v0, Landroid/os/Handler;

    iget-object v1, p0, Ldgb/b0;->a:Landroid/os/HandlerThread;

    invoke-virtual {v1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v0, p0, Ldgb/b0;->b:Landroid/os/Handler;

    return-void
.end method

.method public static a()Landroid/os/Looper;
    .locals 1

    .line 3
    sget-object v0, Ldgb/b0;->c:Ldgb/b0;

    iget-object v0, v0, Ldgb/b0;->b:Landroid/os/Handler;

    invoke-virtual {v0}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;

    move-result-object v0

    return-object v0
.end method

.method public static declared-synchronized a(Ljava/lang/Runnable;)Z
    .locals 2

    const-class v0, Ldgb/b0;

    monitor-enter v0

    .line 1
    :try_start_0
    sget-object v1, Ldgb/b0;->c:Ldgb/b0;

    iget-object v1, v1, Ldgb/b0;->b:Landroid/os/Handler;

    invoke-virtual {v1, p0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    move-result p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return p0

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static declared-synchronized a(Ljava/lang/Runnable;J)Z
    .locals 2

    const-class v0, Ldgb/b0;

    monitor-enter v0

    .line 2
    :try_start_0
    sget-object v1, Ldgb/b0;->c:Ldgb/b0;

    iget-object v1, v1, Ldgb/b0;->b:Landroid/os/Handler;

    invoke-virtual {v1, p0, p1, p2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    move-result p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return p0

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static declared-synchronized b(Ljava/lang/Runnable;)V
    .locals 2

    const-class v0, Ldgb/b0;

    monitor-enter v0

    if-eqz p0, :cond_0

    .line 1
    :try_start_0
    sget-object v1, Ldgb/b0;->c:Ldgb/b0;

    iget-object v1, v1, Ldgb/b0;->b:Landroid/os/Handler;

    invoke-virtual {v1, p0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0

    .line 2
    :cond_0
    :goto_0
    monitor-exit v0

    return-void
.end method
